<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.ico">

    <title>Kursus Gitar Online</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url(); ?>asset/css/bootstrap.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>asset/css/carousel.css" rel="stylesheet">

    <link href="<?php echo base_url(); ?>asset/css/custom-gitar.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


    <!-- jquery for all -->
    <script src="<?php echo base_url(); ?>asset/js/jquery.min.js"></script>
    <!-- end jquery for all -->

    <script>
    $('#myModal').modal({
      keyboard: false
    })
    </script>

  </head>

  <body>

  <?php
  $id = $this->session->userdata('id_member');
  $login = $this->session->userdata('statusLogin');
  if(empty($id) || empty($login)){
  ?>
  <!-- Modal -->
  <div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <form action="login-member" method="post" class="form-horizontal" role="form">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="myModalLabel">Login Member</h4>
          </div>
          <div class="modal-body">
            <div class="form-group">
              <label class="col-sm-3 control-label">Username</label>
              <div class="col-sm-9">
                <input type="text" name="username" class="form-control input-sm" placeholder="Username">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">Password</label>
              <div class="col-sm-9">
                <input type="password" name="password" class="form-control input-sm" id="inputPassword3" placeholder="Password">
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="submit" class="btn btn-primary">Masuk</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <!-- end modal -->
  <?php
  }
  ?>
    <!-- untuk navigasi header -->

    <div class="navbar navbar-inverse navbar-fixed-top shadow" role="navigation">
      <div class="header100">
        
      <div class="clearfix"></div>
      </div>
      <div class="container">
        <div class="row">
          <div class="col-md-10 col-md-offset-1">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <!-- <a class="navbar-brand" href="#">Amani Green</a> -->
              <div class="logo-utama">
                <img src="asset/images/logo.png">
                <h1>Kursus Gitar Online</h1>
              </div>
            </div>
            <div class="collapse navbar-collapse navbar-right">
              <ul class="nav navbar-nav">
                <li><a href="<?php echo site_url(); ?>">Home</a></li>
                <li><a href="<?php echo site_url('pendaftaran'); ?>">Pendaftaran</a></li>
                <!-- <li><a href="<?php echo site_url('pembayaran'); ?>">Pembayaran</a></li> -->
                <li><a href="<?php echo site_url('kontak'); ?>">Kontak</a></li>
                <?php
                  if(empty($id) || empty($login)){
                    ?>
                      <li class="active"><a href="#" data-toggle="modal" data-target="#myModal">Login Member</a></li>
                    <?php
                  }else{
                    $nama = $this->session->userdata('nama_panggilan');
                    ?>
                      <li class="dropdown active">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                          <span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<?php echo $nama; ?> <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                          <li>
                            <a href="<?php echo site_url('member-area'); ?>">
                              <span class="glyphicon glyphicon-user"></span>&nbsp;Member Area
                            </a>
                          </li>
                          <li>
                            <a href="#">
                              <span class="glyphicon glyphicon-edit"></span>&nbsp;Edit Profil
                            </a>
                          </li>
                          <li class="divider"></li>
                          <li><a href="<?php echo site_url('logout'); ?>">
                            <span class="glyphicon glyphicon-log-out"></span>&nbsp;Logout
                          </a></li>
                        </ul>
                      </li>
                    <?php
                  }
                ?>
              </ul>
            </div><!--/.nav-collapse -->
          </div>
        </div>
        
      </div>
    </div>
    <!-- end untuk navigasi header -->

    <!-- panggil page -->
    <?php
      $this->load->view($main_content);
    ?>
    <!-- end panggil page -->

    <div class="outer100footer-b margin-top-content navbar-fixed-bottom">
      <div class="container">
        <div class="row">
          <div class="col-md-10 col-md-offset-1">
            Copyright &copy; 2014 <a class="link-orange-hover" href="#">Kursus Gitar Online</a>
            <span class="pull-right">Developed by <a class="link-orange-hover" href="http://www.rai.asia">Raksa Abadi Informatika</a></span>
          </div>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
    <script src="<?php echo base_url(); ?>asset/js/bootstrap.min.js"></script>
    
    <!-- js grid -->
    <!-- <script src="asset/js/js-grid/jquery2.js" type="text/javascript"></script>-->
    <script src="<?php echo base_url(); ?>asset/js/js-grid/jquery.masonry.js" type="text/javascript"></script>
    <script src="<?php echo base_url(); ?>asset/js/js-grid/modernizr.js" type="text/javascript"></script>
    

  </body>
</html>
